#include<stdio.h>
#include<math.h>
int main() {
    int a, b, i = 0, sum = 0, temp = 1;
    while (scanf("%d %d", &a, &b) != EOF)
    {
        for (i = a; i <= b; i++)
        {
            sum = pow(i % 10, 3) + pow((i / 10) % 10, 3) + pow(i / 100, 3);
            if (sum == i) {
                printf("%d ", i);
                temp = 0;
            }
        }
    }
    if (temp == 1)
        printf("no");
    printf("\n");
    return 0;
}